package com.yanyilu.basing.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;



import com.baomidou.mybatisplus.annotations.Version;

import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Sxx
 * @since 2020-10-27
 */
@Data
@Accessors(chain = true)
public class Activity extends Model<Activity> {

    private static final long serialVersionUID = 1L;

    /**
     * 活动主键
     */
    @TableId(value = "activity_id",type = IdType.AUTO)
    private Integer activityId;

    /**
     * 活动开始时间
     */
    @TableField("start_time")
    private Integer startTime;

    /**
     * 活动结束时间
     */
    @TableField("end_time")
    private Integer endTime;

    /**
     * 报名费
     */
    @TableField("apply_fee")
    private BigDecimal applyFee;

    /**
     * 报名开始时间
     */
    @TableField("sign_up_end_time")
    private Integer signUpEndTime;

    /**
     * 报名截止时间
     */
    @TableField("sign_up_start_time")
    private Integer signUpStartTime;

    /**
     * 押金
     */
    private BigDecimal deposit;

    /**
     * 收货开始时间
     */
    @TableField("receive_start_time")
    private Integer receiveStartTime;

    /**
     * 收货截止时间
     */
    @TableField("receive_end_time")
    private Integer receiveEndTime;


    @Override
    protected Serializable pkVal() {
        return this.activityId;
    }

}
